<?xml version='1.0' encoding='UTF-8' ?>
<!--
    Desenvolvido pela Fábrica de Software do CESUPA.
    Todos os direitos reservados.

    @author Breno Leite
-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:appcommons="http://www.fabsoft.cesupa.br/appcommons">

    <ui:insert name="head">
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>${pagetitle} | Nome do Sistema</title>

            <!-- favicon -->
            <link rel="shortcut icon" href="#{facesContext.externalContext.request.contextPath}/images/favicon.ico" />

            <!-- reset styles -->
            <link href="#{facesContext.externalContext.request.contextPath}/styles/others/reset.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- default form styles -->
            <link href="#{facesContext.externalContext.request.contextPath}/styles/others/default-form-styles.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- general styles -->
            <link href="#{facesContext.externalContext.request.contextPath}/styles/others/general-styles.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- richfaces redefinitions -->
            <link href="#{facesContext.externalContext.request.contextPath}/styles/others/richfaces-redefinitions.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- status styles -->
            <link href="#{facesContext.externalContext.request.contextPath}/styles/others/status-styles.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- nifty cube dependencies -->
            <script type="text/javascript" src="#{facesContext.externalContext.request.contextPath}/scripts/nifty-cube/nifty-cube.js"></script>
            <link href="#{facesContext.externalContext.request.contextPath}/scripts/nifty-cube/nifty-corners.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- general button styles -->
            <link href="#{facesContext.externalContext.request.contextPath}/styles/others/general-button-styles.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- windows styles -->
            <link href="#{facesContext.externalContext.request.contextPath}/styles/others/windows-styles.css" rel="stylesheet" type="text/css" media="screen" />

            <!-- commons scripts -->
            <script type="text/javascript" src="#{facesContext.externalContext.request.contextPath}/scripts/commons/commons-scripts.js"></script>

            <script type="text/javascript" src="#{facesContext.externalContext.request.contextPath}/scripts/virtual-keyboard/keyboard.js" charset="UTF-8"></script>
            <link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.request.contextPath}/scripts/virtual-keyboard/keyboard.css" />

            <ui:insert name="additional-header-content"></ui:insert>

            <script type="text/javascript" language="Javascript">
                window.onload=function(){
                <ui:insert name="onpageload"></ui:insert>
                }
                <ui:insert name="scripts"></ui:insert>
            </script>

            <style type="text/css">
                <ui:insert name="styles"></ui:insert>
            </style>

            <meta name="description" content="${pagedescription}" />
            <meta name="keywords" content="${pagekeywords}" />
        </head>
    </ui:insert>

    <body>
        <!-- bundles used to localize the application -->
        <f:loadBundle basename="br.cesupa.fabsoft.nomedoprojeto.i18n.words" var="words"/>
        <f:loadBundle basename="br.cesupa.fabsoft.nomedoprojeto.i18n.messages" var="messages"/>
        <f:loadBundle basename="br.cesupa.fabsoft.nomedoprojeto.i18n.alt-messages" var="altmessages"/>
        <f:loadBundle basename="br.cesupa.fabsoft.nomedoprojeto.i18n.tooltip-messages" var="tooltipmessages"/>
        <ui:insert name="additional-bundles"></ui:insert>

        <ui:insert name="body">

        </ui:insert>
    </body>
</html>